package com.company.modules.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.modules.project.entity.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Xmirror
* @description 针对表【department(部门)】的数据库操作Mapper
* @createDate 2022-02-26 13:18:09
* @Entity com.company.modules.project.entity.Department
*/
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 查找所有部门
     *
     * @return Department
     */
    List<com.company.modules.project.entity.Department> selectAllDepartment();

    /**
     * 通过 id 查找部门
     *
     * @param id 部门ID
     * @return 部门对象
     */
    com.company.modules.project.entity.Department selectDepartmentById(Integer id);

}
